<div class="store foundations container">
	
	<h1><?php echo __d('admin', 'Foundations'); ?></h1>
	
	<h2>
		<?php echo $this->Html->link(__d('admin', 'Create'), array('action' => 'create'), array('class' => 'btn btn-primary')); ?>
	</h2>
	
	<?php if( $foundations ): ?>
	<table class="table">
		<tr>
			<th>ID</th>
			<th>Name</th>
			<th>Actions</th>
		</tr>
		<?php foreach($foundations as $foundation): ?>
		<tr>
			<td><?php echo $foundation['Foundation']['id']; ?></td>
			<td><?php echo $this->Html->link($foundation['Foundation']['name'], array('action' => 'view', $foundation['Foundation']['id'])); ?></td>
			<td>
				<?php
				
				echo $this->Html->link(
					'<span class="glyphicon glyphicon-edit"></span>',
					array('action' => 'edit', $foundation['Foundation']['id']),
					array('escape' => false, 'title' => __d('admin', 'Edit'))
				) . "\n";
				
				echo $this->Html->link(
					'<span class="glyphicon glyphicon-trash"></span>',
					array('action' => 'delete', $foundation['Foundation']['id']),
					array('escape' => false, 'title' => __d('admin', 'Delete')),
					__d('admin', 'Are you sure you want to delete this item?')
				);
				
				?>
			</td>
		</tr>
		<?php endforeach; ?>
	</table>
	<?php else: ?>
	<div class="alert alert-info"><?php echo __d('admin', 'Nothing to show here!'); ?></div>
	<?php endif; ?>
	
</div>